package com.xiyi.shouxin.view.pojo;

import com.xiyi.shouxin.entity.user.PiciRecord;

import lombok.Getter;

@Getter
public class PiciRecordView extends PiciRecord {
    private AdminView admin;

    public PiciRecordView(PiciRecord pici, AdminView admin) {
        if (pici != null) {
            this.setId(pici.getId());
            this.setAdminId(pici.getAdminId());
            this.setCreatedAt(pici.getCreatedAt());
        }
        this.admin = admin;
    }
}
